Skip to content

Conversation

@jdonszelmann
Copy link
Contributor

First commit adds a test that's broken currently, 2nd commit fixes it.

Created with @WaffleLapkin

@rustbot
Copy link
Collaborator

rustbot commented Oct 22, 2025

HIR ty lowering was modified

cc @fmease

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Oct 22, 2025
@rustbot
Copy link
Collaborator

rustbot commented Oct 22, 2025

r? @petrochenkov

rustbot has assigned @petrochenkov.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rust-log-analyzer

This comment has been minimized.

@jdonszelmann jdonszelmann changed the title Duplicate deprecation warning when using unit or tuple structs Deduplicate deprecation warning when using unit or tuple structs Oct 22, 2025
@jdonszelmann jdonszelmann force-pushed the duplicate-warning-struct branch from 3cac327 to 47ab7a8 Compare October 23, 2025 09:13
@jdonszelmann
Copy link
Contributor Author

yup, you're right @jieyouxu, ty :3

@petrochenkov
Copy link
Contributor

This looks like an overkill, and probably a perf regression.
I'd rather override fn visit_use specifically in the stability visitor, and throw away one of the 3 paths if its resolution points to a constructor of one of the other two paths.

@petrochenkov petrochenkov added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 23, 2025
@jdonszelmann jdonszelmann force-pushed the duplicate-warning-struct branch from 47ab7a8 to 8e7ccf3 Compare October 28, 2025 16:11
@rustbot
Copy link
Collaborator

rustbot commented Oct 28, 2025

This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@jdonszelmann
Copy link
Contributor Author

@rustbot review

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Oct 28, 2025
@jdonszelmann
Copy link
Contributor Author

@petrochenkov this is indeed much cleaner, thanks for the suggestion!

@petrochenkov petrochenkov added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 29, 2025
@jdonszelmann jdonszelmann force-pushed the duplicate-warning-struct branch 3 times, most recently from 0fae4ea to 769d54e Compare October 30, 2025 09:36
@jdonszelmann
Copy link
Contributor Author

ok, made it slightly nicer still I think, where we don't need an explicit loop or separate storage at all

@jdonszelmann
Copy link
Contributor Author

@rustbot review

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Oct 30, 2025
@petrochenkov petrochenkov added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 31, 2025
Co-authored-by: Waffle Lapkin <waffle.lapkin@gmail.com>
@jdonszelmann jdonszelmann force-pushed the duplicate-warning-struct branch from 769d54e to a7484b1 Compare November 3, 2025 09:43
@jdonszelmann
Copy link
Contributor Author

@rusbot review

@jdonszelmann jdonszelmann force-pushed the duplicate-warning-struct branch from a7484b1 to 1b00911 Compare November 3, 2025 09:45
@jdonszelmann
Copy link
Contributor Author

@rustbot review

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Nov 3, 2025
@petrochenkov
Copy link
Contributor

Thanks!
@bors r+

@bors
Copy link
Collaborator

bors commented Nov 5, 2025

📌 Commit 1b00911 has been approved by petrochenkov

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 5, 2025
bors added a commit that referenced this pull request Nov 5, 2025
Rollup of 8 pull requests

Successful merges:

 - #147994 (Deduplicate deprecation warning when using unit or tuple structs)
 - #148440 ([rustdoc search] Simplify itemTypes and filter "dependencies")
 - #148501 (triagebot: Create Zulip topics for libs backports)
 - #148517 (Remove no longer necessary lint allow)
 - #148518 (Unify the configuration of the compiler docs)
 - #148523 (miri subtree update)
 - #148525 (Fix ICE from lit_to_mir_constant caused by type error)
 - #148534 (Merge `Vec::push{,_mut}_within_capacity`)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit a508f61 into rust-lang:master Nov 6, 2025
11 checks passed
@rustbot rustbot added this to the 1.93.0 milestone Nov 6, 2025
rust-timer added a commit that referenced this pull request Nov 6, 2025
Rollup merge of #147994 - jdonszelmann:duplicate-warning-struct, r=petrochenkov

Deduplicate deprecation warning when using unit or tuple structs

First commit adds a test that's broken currently, 2nd commit fixes it.

Created with `@WaffleLapkin`
github-actions bot pushed a commit to rust-lang/miri that referenced this pull request Nov 6, 2025
Rollup of 8 pull requests

Successful merges:

 - rust-lang/rust#147994 (Deduplicate deprecation warning when using unit or tuple structs)
 - rust-lang/rust#148440 ([rustdoc search] Simplify itemTypes and filter "dependencies")
 - rust-lang/rust#148501 (triagebot: Create Zulip topics for libs backports)
 - rust-lang/rust#148517 (Remove no longer necessary lint allow)
 - rust-lang/rust#148518 (Unify the configuration of the compiler docs)
 - rust-lang/rust#148523 (miri subtree update)
 - rust-lang/rust#148525 (Fix ICE from lit_to_mir_constant caused by type error)
 - rust-lang/rust#148534 (Merge `Vec::push{,_mut}_within_capacity`)

r? `@ghost`
`@rustbot` modify labels: rollup
makai410 pushed a commit to makai410/rustc_public that referenced this pull request Nov 7, 2025
Rollup of 8 pull requests

Successful merges:

 - rust-lang/rust#147994 (Deduplicate deprecation warning when using unit or tuple structs)
 - rust-lang/rust#148440 ([rustdoc search] Simplify itemTypes and filter "dependencies")
 - rust-lang/rust#148501 (triagebot: Create Zulip topics for libs backports)
 - rust-lang/rust#148517 (Remove no longer necessary lint allow)
 - rust-lang/rust#148518 (Unify the configuration of the compiler docs)
 - rust-lang/rust#148523 (miri subtree update)
 - rust-lang/rust#148525 (Fix ICE from lit_to_mir_constant caused by type error)
 - rust-lang/rust#148534 (Merge `Vec::push{,_mut}_within_capacity`)

r? `@ghost`
`@rustbot` modify labels: rollup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants